/**
 * Genarator by KKDGen v<?php echo $version."\n";?>
 * @author KKDeveloeper
 * @email Dixonsatit@gmail.com
 * @link www.ikkdev.com,www.kkdeveloper.com
 <?php  echo empty($nameSpace)?'':'* Namespace : '.$nameSpace."\n"; ?>
 * ExtjsMainView : <?php echo $modelClass."\n";?>
 */

Ext.define('<?php echo empty ($nameSpace)? $modelClass:$nameSpace.'.view.'.strtolower($modelClass).'.main' ?>', {
    
    //uncomment the following to enable Window
    /*extend: 'Ext.window.Window',
    autoShow: true,
    width:500,
    height:500,
    modal : true,*/
   
    extend: 'Ext.panel.Panel',
    alias: 'widget.<?php echo strtolower($modelClass); ?>Main',
    layout:'card',
    margins: '5 5 5 5',
    activeItem:0,
    title:'<?php echo $modelClass;?>',
    requires: ['<?php echo empty ($nameSpace)? $modelClass:$nameSpace.'.view.'.strtolower($modelClass);  ?>.form',
                    '<?php echo empty ($nameSpace)? $modelClass:$nameSpace.'.view.'.strtolower($modelClass);  ?>.grid'],  
    initComponent: function() {
        
        this.items = [{xtype:'<?php echo strtolower($modelClass);  ?>Grid'},
                           {xtype:'<?php echo strtolower($modelClass);  ?>Form'}];
        
        this.callParent(arguments);
    }
});
